<?php
class WebModule extends CWebModule {

	public function preinit () {
		$module = $this->getName();
		$this->setImport(array(
			$module . '.models.*',
			$module . '.components.*' 
		));
		
		$app = Yii::app();
		$this->setViewPath($app->getViewPath() . '/' . $module);
		$this->setLayoutPath($app->getLayoutPath());
	}
}
?>